package com.xyongfeng.foodManagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyongfeng.foodManagement.common.BaseResponse;
import com.xyongfeng.foodManagement.domain.AdminInfo;
import com.xyongfeng.foodManagement.domain.vo.AdminInfoSimpleVO;
import com.xyongfeng.foodManagement.domain.vo.AdminInfoVO;
import org.apache.shiro.authc.Account;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author xyongfeng
* @description 针对表【admin_info】的数据库操作Service
* @createDate 2023-12-17 17:02:37
*/
public interface AdminInfoService extends IService<AdminInfo> {



    /**
     * 登录
     * @return
     */
    AdminInfoVO login(String username,String password, HttpServletRequest request);


    /**
     * 退出
     * @return
     */
    AdminInfoVO logout(HttpServletRequest request);

    /**
     * 获取登录信息
     * @param request
     * @return
     */
    AdminInfoVO getLoginAdmin(HttpServletRequest request);

    /**
     * 获取所有管理员信息
     * @return
     */
    List<AdminInfoVO> selectAll();

    AdminInfo findByUsername(String username);

    List<AdminInfoSimpleVO> selectSimpleAll();
}
